namespace RIS.TMP.WEB.APP.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class AllContext3 : DbMigration
    {
        public override void Up()
        {
            AddForeignKey("dbo.CAddCar", "CarModel", "dbo.CModelCar", "ModelCarId");
            AddForeignKey("dbo.CAddCar", "RoueSize", "dbo.CRoueSize", "RoueSizeId");
            AddForeignKey("dbo.CAddCar", "AddCarStatus", "dbo.CStatusRepair", "StatusReId");
            AddForeignKey("dbo.CAddCar", "CarType", "dbo.CStageCar", "StageCarId");
            CreateIndex("dbo.CAddCar", "CarModel");
            CreateIndex("dbo.CAddCar", "RoueSize");
            CreateIndex("dbo.CAddCar", "AddCarStatus");
            CreateIndex("dbo.CAddCar", "CarType");
        }
        
        public override void Down()
        {
            DropIndex("dbo.CAddCar", new[] { "CarType" });
            DropIndex("dbo.CAddCar", new[] { "AddCarStatus" });
            DropIndex("dbo.CAddCar", new[] { "RoueSize" });
            DropIndex("dbo.CAddCar", new[] { "CarModel" });
            DropForeignKey("dbo.CAddCar", "CarType", "dbo.CStageCar");
            DropForeignKey("dbo.CAddCar", "AddCarStatus", "dbo.CStatusRepair");
            DropForeignKey("dbo.CAddCar", "RoueSize", "dbo.CRoueSize");
            DropForeignKey("dbo.CAddCar", "CarModel", "dbo.CModelCar");
        }
    }
}
